<include file="Public:header" />
<body>
<div class="main" >
	<div id="navigation"> &nbsp;当前位置 > 内容管理 > 栏目管理</div>
	<div class="mainmenu"><a href="__URL__/addCat">添加栏目</a></div>
	<table id="maintable">
		<tr>
			<th class="leftsj">如果还没有栏目，请先添加顶级栏目。</th><th>&nbsp;</th>
		</tr>
		<volist name="list" id="vo">
			<tr>
			 <td class="leftsj"><img src="../Public/images/treeicon.jpg" />&nbsp;<?php for($i=0;$i<$vo['depth'];$i++) echo '－'; ?>  {$vo.cname} </td>
			 <td class="colorhui">[ <a href="__URL__/addCat/pid/{$vo.id}">增加下级栏目</a> | <a href="__URL__/editCat/pid/{$vo.id}">修改栏目</a> | <a href="javascript:del({$vo.id})">删除栏目</a> ]</td>
		  </tr>
	  </volist>
		
  </table>
</div>
<script type="text/javascript">
	function del(id){
		if (window.confirm('删除栏目将会连同其子栏目一起删除，确实要删除吗？'))
		{	
			
			location.href = "__URL__/delCat/id/"+id;
		}
	}
</script>
</body>
</html>